#!/bin/sh
dire="/home/wwwroot/default/baidumap/"
[ -d "$dire" ] && rmdir "$dire"
mkdir "$dire"
cd /home/wwwroot/default/baidumap/
wget -N https://raw.githubusercontent.com/EngiGu/crontab/master/baidumap/sign.php
wget -N https://raw.githubusercontent.com/EngiGu/crontab/master/baidumap/smtp.php
wget -N https://raw.githubusercontent.com/EngiGu/crontab/master/baidumap/BDUSS.ini
wget -N https://raw.githubusercontent.com/EngiGu/crontab/master/baidumap/result.php
wget -N https://raw.githubusercontent.com/EngiGu/crontab/master/baidumap/POST.ini
wget -N https://raw.githubusercontent.com/EngiGu/crontab/master/baidumap/saveini.html
chmod +x sign.php
chmod +x smtp.php
cd /root
ip=`curl -s http://members.3322.org/dyndns/getip`;
echo "0 6 * * *  curl  http://$ip:1234/baidumap/sign.php" >> /var/spool/cron/root

